package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 二手车辆信息对象 sys_car
 *
 * @author silencezheng
 * @date 2022-11-16
 */
public class SysCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 行驶里程 */
    @Excel(name = "行驶里程")
    private String mileage;

    /** 购买日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 详细参数 */
    private String details;

    /** 出售价格 */
    @Excel(name = "出售价格")
    private BigDecimal price;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String image;

    /** 出售状态：0已出售，1未出售 */
    @Excel(name = "出售状态：0已出售，1未出售")
    private String status;

    /** 卖家 */
    private Long ownerId;
    @Excel(name = "卖家")
    private String ownerName;

    /** 买家 */
    private Long buyerId;
    @Excel(name = "买家")
    private String buyerName;

    /** 车辆品牌 */
    @Excel(name = "车辆品牌")
    private String type;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setMileage(String mileage)
    {
        this.mileage = mileage;
    }

    public String getMileage()
    {
        return mileage;
    }
    public void setBuyTime(Date buyTime)
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime()
    {
        return buyTime;
    }
    public void setDetails(String details)
    {
        this.details = details;
    }

    public String getDetails()
    {
        return details;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setOwnerId(Long ownerId)
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId()
    {
        return ownerId;
    }
    public void setBuyerId(Long buyerId)
    {
        this.buyerId = buyerId;
    }

    public Long getBuyerId()
    {
        return buyerId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    public void setOwnerName(String ownerName)
    {
        this.ownerName = ownerName;
    }

    public String getOwnerName()
    {
        return ownerName;
    }
    public void setBuyerName(String buyerName)
    {
        this.buyerName = buyerName;
    }

    public String getBuyerName()
    {
        return buyerName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("mileage", getMileage())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("buyTime", getBuyTime())
            .append("details", getDetails())
            .append("price", getPrice())
            .append("image", getImage())
            .append("status", getStatus())
            .append("ownerId", getOwnerId())
            .append("ownerName", getOwnerName())
            .append("buyerId", getBuyerId())
            .append("buyerName", getBuyerName())
            .append("type", getType())
            .toString();
    }
}
